package org.jypj.dev.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.google.gson.Gson;

/**
 * 工序表
 *
 * @author chenyu
 */
public class Work implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; // 主键
    private String name; // 工序名称
    private String isCatalog; // 是否目录 目录为0 功能为1
    private String parentId; // 上级工序
    private int catalogDepth; // 目录级别 自动计算
    private int workType;//工序类型 0表示nfc 1 表示拍照
    private String nfcPlace;//nfc地点
    private String trainType;//车型
    private int timeLimitOne; // 扣分时间区间第一个值 --功能
    private int timeLimitTwo; // 扣分时间区间第二个值--功能
    private int timeScoreOne; // 时间未到扣分分值 --功能
    private int timeScoreTwo; // 在区间内扣分分值--功能
    private int timeScoreThree; // 时间超过扣分分值--功能
    private int numLimitOne; // 未完成扣分分值
    private int numScoreOne; // 提前完成扣分分值
    private String isValid;//是否有效
    private String remindInfo;//提示信息

    private int numLimitTwo; // 数量区间第二个值 --目录
    private int numScoreTwo; // 数量在区间内扣分值 --目录
    private int numScoreThree; // 数量超过扣分分值 --目录
    private String sortOrder;// 排序 全部

    //-----以下不与数据库对应
    private int nfcNum; // NFC数量 自动计算
    private int photoNum; // 拍照数量 自动计算
    private String parentName;// 父工序
    private String trainTypesValue;// 对应车型名称
    private Map<String, String> trainTypeNames = new HashMap<String, String>();// 车型

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIsCatalog() {
        return this.isCatalog;
    }

    public void setIsCatalog(String isCatalog) {
        this.isCatalog = isCatalog;
    }

    public String getParentId() {
        return this.parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public int getCatalogDepth() {
        return catalogDepth;
    }

    public void setCatalogDepth(int catalogDepth) {
        this.catalogDepth = catalogDepth;
    }

    public int getNfcNum() {
        return nfcNum;
    }

    public void setNfcNum(int nfcNum) {
        this.nfcNum = nfcNum;
    }

    public int getPhotoNum() {
        return photoNum;
    }

    public void setPhotoNum(int photoNum) {
        this.photoNum = photoNum;
    }

    public int getTimeLimitOne() {
        return timeLimitOne;
    }

    public void setTimeLimitOne(int timeLimitOne) {
        this.timeLimitOne = timeLimitOne;
    }

    public int getTimeLimitTwo() {
        return timeLimitTwo;
    }

    public void setTimeLimitTwo(int timeLimitTwo) {
        this.timeLimitTwo = timeLimitTwo;
    }

    public int getTimeScoreOne() {
        return timeScoreOne;
    }

    public void setTimeScoreOne(int timeScoreOne) {
        this.timeScoreOne = timeScoreOne;
    }

    public int getTimeScoreTwo() {
        return timeScoreTwo;
    }

    public void setTimeScoreTwo(int timeScoreTwo) {
        this.timeScoreTwo = timeScoreTwo;
    }

    public int getTimeScoreThree() {
        return timeScoreThree;
    }

    public void setTimeScoreThree(int timeScoreThree) {
        this.timeScoreThree = timeScoreThree;
    }

    public int getNumLimitOne() {
        return numLimitOne;
    }

    public void setNumLimitOne(int numLimitOne) {
        this.numLimitOne = numLimitOne;
    }

    public int getNumLimitTwo() {
        return numLimitTwo;
    }

    public void setNumLimitTwo(int numLimitTwo) {
        this.numLimitTwo = numLimitTwo;
    }

    public int getNumScoreOne() {
        return numScoreOne;
    }

    public void setNumScoreOne(int numScoreOne) {
        this.numScoreOne = numScoreOne;
    }

    public int getNumScoreTwo() {
        return numScoreTwo;
    }

    public void setNumScoreTwo(int numScoreTwo) {
        this.numScoreTwo = numScoreTwo;
    }

    public int getNumScoreThree() {
        return numScoreThree;
    }

    public void setNumScoreThree(int numScoreThree) {
        this.numScoreThree = numScoreThree;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public Map<String, String> getTrainTypeNames() {
        return trainTypeNames;
    }

    public void setTrainTypeNames(Map<String, String> trainTypeNames) {
        this.trainTypeNames = trainTypeNames;
    }

    public String getTrainTypesValue() {
        return trainTypesValue;
    }

    public void setTrainTypesValue(String trainTypesValue) {
        this.trainTypesValue = trainTypesValue;
    }


    public int getWorkType() {
        return workType;
    }

    public void setWorkType(int workType) {
        this.workType = workType;
    }

    public String getNfcPlace() {
        return nfcPlace;
    }

    public void setNfcPlace(String nfcPlace) {
        this.nfcPlace = nfcPlace;
    }

    public String getTrainType() {
        return trainType;
    }

    public void setTrainType(String trainType) {
        this.trainType = trainType;
    }

    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    public String getRemindInfo() {
        return remindInfo;
    }

    public void setRemindInfo(String remindInfo) {
        this.remindInfo = remindInfo;
    }

    @Override
    public String toString() {
        return "{" +
                "id='" + id + '\'' +
                ", sortOrder='" + sortOrder + '\'' +
                '}';
    }
}